
import User from "../views/user"
import Banner from "../views/banner"
import Pro from "../views/pro"
import Found from "../views/found"
import Login from "../views/login"
import Stat from'../views/stat'
import Appuser from'../views/appuser'
import Region from '../views/region'
import { EnvironmentOutlined,BankOutlined,SearchOutlined,HomeOutlined, UsergroupAddOutlined,UserAddOutlined,AppstoreOutlined ,PieChartOutlined} from '@ant-design/icons';

// 暂时
const Layout = () => <div>123</div>





// 左侧菜单栏共享同一个数据
export const routes = [
    {
        path: "/",
        component: Layout,
        title: "统计",
        exact: true,  // exact

        icon: <PieChartOutlined />,  //一定要传组件
        children: [
            {
                path: '/',
                component: Stat,
                title: "数据统计",
                icon: <PieChartOutlined />,
            }
        ]
    },
   
    {
        path: "/user",
        component: Layout,
        title: "用户管理",
        icon: <UserAddOutlined />,  //一定要传组件
        children: [
            {
                path: '/user/user',
                component: User,
                title: "用户列表",
                icon: <UserAddOutlined />,
            }
        ]
    },
    {
        path: "/appuser",
        component: Layout,
        title: "app用户管理",
        // exact: true,  // exact
        icon: <UsergroupAddOutlined />,  //一定要传组件
        children: [
            {
                path: '/appuser/appuser',
                component: Appuser,
                title: "app用户列表",
                icon: <UsergroupAddOutlined />,
            }
        ]
    },
    {
        path: "/region",
        component: Layout,
        title: "地域管理",
        // exact: true,  // exact
        icon: <EnvironmentOutlined />,  //一定要传组件
        children: [
            {
                path: '/region/region',
                component: Region,
                title: "地域列表",
                icon: <EnvironmentOutlined />,
            }
        ]
    },
    {
        path: "/banner",
        component: Layout,
        title: "房源类别管理",
        icon: <HomeOutlined />,
        children: [
            {
                path: '/banner/banner',
                component: Banner,
                title: '房源类别列表',
                icon: <HomeOutlined />
            },

        ]
    },
    
    {
        path: "/found",
        component: Layout,
        title: "发现",
        icon: <SearchOutlined />,
        children: [
            {
                path: '/found/found',
                component: Found,
                title: '发现列表',
                icon: <SearchOutlined />
            },

        ]
    },
    {
        path: "/pro",
        component: Layout,
        title: "房源管理",
        icon: <BankOutlined />,
        children: [
            {
                path: '/pro/pro',
                component: Pro,
                title: '房源列表',
                icon:<BankOutlined />
            }
        ]
    },
    {
        path: '/login',
        component: Login,
        title: '请登录',
        hidden: true,
    }
]







